//
//  HitArea.h
//  FingerChinese
//
//  Created by luar on 30/01/2010.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface HitArea : UIButton <AVAudioPlayerDelegate> {
	AVAudioPlayer *audioPlayer;
	NSString *mp3Path;
	int pageNo;
	BOOL canPlay;
}

- (void)playSound;
- (void)stopSound;
- (void)highlight;
- (void)dehighlight;
- (void)audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag;

@property (nonatomic, retain) NSString *mp3Path;
@property (nonatomic, readonly) BOOL canPlay;
@property (nonatomic, readwrite) int pageNo;
@end
